package com.mlh.springboot.bean;

import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author 缪林辉
 * @date 2024/3/3 22:25
 * @DESCRIPTION
 */
@ToString
@Data
public class Furn {
    private Integer id;
    private String name;
    private String maker;
    private BigDecimal price;
    private Integer sales;
    private Integer stock;

    private String imgPath = "assets/images/product-image/1.jpg";

    public Furn() {
    }
    public Furn(Integer id, String name, String maker, BigDecimal price,
                Integer sales, Integer stock, String imgPath) {
        this.id = id;
        this.name = name;
        this.maker = maker;
        this.price = price;
        this.sales = sales;
        this.stock = stock;
        if (!(imgPath == null || imgPath.equals(""))) {
            this.imgPath = imgPath;
        }
    }
}
